<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:useBean id="f16" class="test.ScoreBean" scope="request"/>
<jsp:setProperty property="*" name="f16"/>
<jsp:setProperty property="dbFName" name="f16" value="idscore,idstudent,classname,score"/>
<!-- 若是 call db 則要改為 jspDb -->

${f16.exe}


<!-- ----------- 以下為 HTML View --------------- -->
<form name="form_f16">
	<input name="jheader" type="hidden" value="${f16.jheader}">
	<input name="pageSize" type="hidden" value="${f16.pageSize}">
	<input name="nowPage" type="hidden" value="${f16.nowPage}">
	<input name="toPage" type="hidden" value="${f16.toPage}">
	<input name="nextPage" type="hidden" value="${f16.nextPage}">
	<input name="sortName" type="hidden" value="${f16.sortName}">
	<input name="sortNowName" type="hidden" value="${f16.sortNowName}">
	<input name="sortNowValue" type="hidden" value="${f16.sortNowValue}">
	<input name="pk" type="hidden" value="${f16.pk}">
	<input name="command" type="hidden" value="${f16.command}">
	<input name="number" type="hidden" value="${f16.number }">
	<input name="sortStatus" type="hidden" value="${f16.sortStatus }">
	<input name="colSize" type="hidden" value="${f16.colSize }">
	<input name="divId" type="hidden" value="${f16.divId }">
	<input name="myQuery" type="text" value="${param.myQuery }">
  <table width="100%" border="1">
    
    <!-- for -->
    <tr>
      <td>idstudentAdd</td>
      <td><label>
        <input type="text" name="idstudentAdd" />
      </label></td>
    </tr>
    <!-- for end -->

    <!-- for -->
    <tr>
      <td>classnameAdd</td>
      <td><label>
        <input type="text" name="classnameAdd" />
      </label></td>
    </tr>
    <!-- for end -->

    <!-- for -->
    <tr>
      <td>scoreAdd</td>
      <td><label>
        <input type="text" name="scoreAdd" />
      </label></td>
    </tr>
    <!-- for end -->


    <tr>
      <td colspan="2"><label>
        <input type="button" name="button" value="新增" onclick="jotherCommand_f16(-1,'add')"/>
      </label></td>
    </tr>
  </table>	
  	
	
	<table width="100%" border="1" class="fontstyle_f16">
	  <tr>
	  		<td  bgcolor="Black" class="headerTEXT_f16">
		    	流水號
		    </td>
		    
		    <!-- for jheader -->
	  		<td bgcolor="Black" class="headerTEXT_f16">
	  			<span class="myMOUSE2_f16" onclick="jsort_f16('${f16.jsortNames[0]}')">
		    		idScore ${f16.jsortIcon[f16.jsortValues[0]]}
		    	</span>
		    </td>
		    <!-- for jheader end -->

		    <!-- for jheader -->
	  		<td bgcolor="Black" class="headerTEXT_f16">
	  			<span class="myMOUSE2_f16" onclick="jsort_f16('${f16.jsortNames[1]}')">
		    		idStudent ${f16.jsortIcon[f16.jsortValues[1]]}
		    	</span>
		    </td>
		    <!-- for jheader end -->

		    <!-- for jheader -->
	  		<td bgcolor="Black" class="headerTEXT_f16">
	  			<span class="myMOUSE2_f16" onclick="jsort_f16('${f16.jsortNames[2]}')">
		    		課程名稱 ${f16.jsortIcon[f16.jsortValues[2]]}
		    	</span>
		    </td>
		    <!-- for jheader end -->

		    <!-- for jheader -->
	  		<td bgcolor="Black" class="headerTEXT_f16">
	  			<span class="myMOUSE2_f16" onclick="jsort_f16('${f16.jsortNames[3]}')">
		    		分數 ${f16.jsortIcon[f16.jsortValues[3]]}
		    	</span>
		    </td>
		    <!-- for jheader end -->


    		
	  		<td  bgcolor="Black" class="headerTEXT_f16">
		    	功能鍵
		    </td>
		    <!-- ---------------------------------------------------------------------------------- --> 
	  </tr>
	  <!-- table body -->
	  <!-- ---------------------------------------------------------------------------------- --> 
	<!-- for row -->
	  <tr>
	  	<td bgcolor="">${f16.pageSize * f16.nowPage + 1 + 0 - f16.pageSize}</td>
	  	
	  	<td bgcolor="">${f16.cell[0][0].htmlItem}</td>
	  	<td bgcolor="">${f16.cell[0][1].htmlItem}</td>
	  	<td bgcolor="">${f16.cell[0][2].htmlItem}</td>
	  	<td bgcolor="">${f16.cell[0][3].htmlItem}</td>

	  	
  	    <td bgcolor="">
            <c:if test="${f16.cell[0][0].showYesNo}">
			    <span class="myMOUSE_f16" onclick="jyes_f16('${f16.cell[0][0].value}')">yes |</span> 
			    <span class="myMOUSE_f16" onclick="jno_f16('${f16.cell[0][0].value}')">no</span>
		    </c:if>
		    <c:if test="${f16.cell[0][0].showYesNo==false}">
			    <span class="myMOUSE_f16" onclick="jedit_f16('${f16.cell[0][0].value}')">edit |</span> 
			    <span class="myMOUSE_f16" onclick="jdel_f16('${f16.cell[0][0].value}')">delete</span> 
		    </c:if>
           </td>
	  </tr>	  
    <!-- for row end -->
	<!-- for row -->
	  <tr>
	  	<td bgcolor="#999999">${f16.pageSize * f16.nowPage + 1 + 1 - f16.pageSize}</td>
	  	
	  	<td bgcolor="#999999">${f16.cell[1][0].htmlItem}</td>
	  	<td bgcolor="#999999">${f16.cell[1][1].htmlItem}</td>
	  	<td bgcolor="#999999">${f16.cell[1][2].htmlItem}</td>
	  	<td bgcolor="#999999">${f16.cell[1][3].htmlItem}</td>

	  	
  	    <td bgcolor="#999999">
            <c:if test="${f16.cell[1][0].showYesNo}">
			    <span class="myMOUSE_f16" onclick="jyes_f16('${f16.cell[1][0].value}')">yes |</span> 
			    <span class="myMOUSE_f16" onclick="jno_f16('${f16.cell[1][0].value}')">no</span>
		    </c:if>
		    <c:if test="${f16.cell[1][0].showYesNo==false}">
			    <span class="myMOUSE_f16" onclick="jedit_f16('${f16.cell[1][0].value}')">edit |</span> 
			    <span class="myMOUSE_f16" onclick="jdel_f16('${f16.cell[1][0].value}')">delete</span> 
		    </c:if>
           </td>
	  </tr>	  
    <!-- for row end -->
	<!-- for row -->
	  <tr>
	  	<td bgcolor="">${f16.pageSize * f16.nowPage + 1 + 2 - f16.pageSize}</td>
	  	
	  	<td bgcolor="">${f16.cell[2][0].htmlItem}</td>
	  	<td bgcolor="">${f16.cell[2][1].htmlItem}</td>
	  	<td bgcolor="">${f16.cell[2][2].htmlItem}</td>
	  	<td bgcolor="">${f16.cell[2][3].htmlItem}</td>

	  	
  	    <td bgcolor="">
            <c:if test="${f16.cell[2][0].showYesNo}">
			    <span class="myMOUSE_f16" onclick="jyes_f16('${f16.cell[2][0].value}')">yes |</span> 
			    <span class="myMOUSE_f16" onclick="jno_f16('${f16.cell[2][0].value}')">no</span>
		    </c:if>
		    <c:if test="${f16.cell[2][0].showYesNo==false}">
			    <span class="myMOUSE_f16" onclick="jedit_f16('${f16.cell[2][0].value}')">edit |</span> 
			    <span class="myMOUSE_f16" onclick="jdel_f16('${f16.cell[2][0].value}')">delete</span> 
		    </c:if>
           </td>
	  </tr>	  
    <!-- for row end -->

	  <!-- ---------------------------------------------------------------------------------- --> 
	  
	  <tr>
	    <td colspan="6">
	    	<span class="myMOUSE_f16" onclick="nextPagex_f16('first')">第1頁 |</span> 
	    	<span class="myMOUSE_f16" onclick="nextPagex_f16('prev10')">上10頁 | </span> 
	    	<span class="myMOUSE_f16" onclick="nextPagex_f16('prev')">上1頁 |</span> 
	    	${f16.pageNumberList}
	    	|  
	    	<span class="myMOUSE_f16" onclick="nextPagex_f16('next')">下1頁 | </span> 
	    	<span class="myMOUSE_f16" onclick="nextPagex_f16('next10')">下10頁 | </span> 
	    	<span class="myMOUSE_f16" onclick="nextPagex_f16('last')">最末頁</span> 
	    </td>
	  </tr>
	</table>
</form>


